package com.waves.spring.boot.autoConfiguration;

import lombok.SneakyThrows;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.lang.reflect.Method;

/**
 * 将bean2注入
 */
public class Config2 {

//    @Bean
    public Bean2 getBean2() {
        return new Bean2();
    }

}

